/**   
 * Model Created on 2022年4月28日
 *   
 * Copyright (c) 2018 by Kunrong.HOo.
 */ 
package com.seaside.park.api;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.seaside.common.bean.Result;
import com.seaside.parkCommon.service.SmsService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;

/**
 * 
 * @author <a href="mailto:hoocoral@hotmail.com">Kunrong.HOo</a>
 * @version 1.0
 */
@Slf4j
@Api(tags="测试接口")
@RestController
@RequestMapping("/api/test")
public class TestAPI {
	
	@Autowired
	private SmsService smsService;

//	@Autowired
//	private WxPayH5Service wxPayH5Service;
	
    @PostMapping("/sms/{mobile}")
    public Result sendTestSms(@PathVariable("mobile") String mobile, @RequestBody Map<String, Object> params) {
    	
    	String seqNo = "yourOutId";
    	String username = "seaside";
    	String parkInfo = "C222";
    	String carPlate = "云A012345";
    	String time = "2022-05-05 10:00:00";
    	
    	return smsService.sendOccupancyPromptSms(mobile, seqNo, username, parkInfo, carPlate, time);
    }

//	@RequestMapping("/wxh5")
//	public void wxH5() throws IOException {
//		wxPayH5Service.CreateOrder();
//	}
}